package com.zrrd.learn.wanzixi;

/**
 * 角色2
 *
 * @author wrn
 * @version 1.0
 * @date 2023/8/15 18:25
 */

public class GameRole02 {

    private String Rolename;
    private int Blood;
    private int Aggressivity;
    private int Defensive;

    public void setRolename(String rolename) {
        Rolename = rolename;
    }

    public void setBlood(int blood) {
        Blood = blood;
    }

    public void setAggressivity(int aggressivity) {
        Aggressivity = aggressivity;
    }

    public void setDefensive(int defensive) {
        Defensive = defensive;
    }

    public String getRolename() {
        return Rolename;
    }

    public int getBlood() {
        return Blood;
    }

    public int getAggressivity() {
        return Aggressivity;
    }

    public int getDefensive() {
        return Defensive;
    }

    public GameRole02(String Rolename, int Blood, int Aggressivity, int Defensive) {
        this.Rolename = Rolename;
        this.Blood = Blood;
        this.Aggressivity = Aggressivity;
        this.Defensive = Defensive;
    }

    //血量
    public void blood02(String Rolename, int Blood) {
        System.out.println("鸠摩智打了乔峰一拳");
        System.out.println(Rolename+"剩余血量为"+Blood);
    }


    //特性
    public void cast02(String Rolename, int Blood, int Aggressivity) {
        System.out.println("就算是天王老子 也无权对我发号施令");
        System.out.println(Rolename+"剩余血量为"+Blood);
    }

}